package stw.brassdawn;

import java.awt.Dimension;

import junit.framework.Assert;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

import stw.brassdawn.map.GameMap;

public class TestInvalidMapSize {

	private GameMap gm1 = null;
	private GameMap gm2 = null;
	private GameMap gm3 = null;
	
	
	@Before
	public void setUp() throws Exception {
		gm1 = new GameMap( new Dimension(0, 0) );
		gm2 = new GameMap( new Dimension(-1, 5) );
		gm3 = new GameMap( new Dimension(5, -1) );
		
	}

	@After
	public void tearDown() throws Exception {
		gm1 = null;
		gm2 = null;
		gm3 = null;
	}
	
	// TODO Find a better name
	@Test
	public void testGameMapDimension1() {
		boolean value = false;
		if( gm1.getMapSize().equals(GameMap.DEFAULT_MAP_SIZE) )
			value = true;
		Assert.assertTrue( value );
	}
	// TODO Find a better name
	@Test
	public void testGameMapDimension2() {
		boolean value = false;
		if( gm2.getMapSize().equals(GameMap.DEFAULT_MAP_SIZE) )
			value = true;
		Assert.assertTrue( value );
	}
	// TODO Find a better name
	@Test
	public void testGameMapDimension3() {
		boolean value = false;
		if( gm3.getMapSize().equals(GameMap.DEFAULT_MAP_SIZE) )
			value = true;
		Assert.assertTrue( value );
	}

}
